package org.xx.armory.config.log4j2;

import static org.xx.armory.commons.Validators.notBlank;

public class LoggerSection {
    private String name;
    private String level;
    private String appenders;

    public LoggerSection() {
        this.name = "";
        this.level = "INFO";
        this.appenders = "";
    }

    public final String getName() {
        return name;
    }

    public void setName(
            String name
    ) {
        this.name = name;
    }

    public final String getLevel() {
        return level;
    }

    public final void setLevel(
            String level
    ) {
        this.level = notBlank(level, "level").trim().toUpperCase();
    }

    public final String getAppenders() {
        return appenders;
    }

    public final void setAppenders(
            String appenders
    ) {
        this.appenders = appenders;
    }
}
